/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package prueba.view.html.body.tree.table;

import java.util.ArrayList;
import java.util.List;
import prueba.view.html.Body;
import prueba.view.html.ElementSupportTree;

/**
 *
 * @author HP_Propietario
 *
 * <table>
 * <thead>
 *
 * <thead>
 * <tbody>
 * <tbody>
 *
 * </table>
 *
 *
 *
 *
 *
 *
 *  id, class (document-wide identifiers)
lang (language information), dir (text direction)
title (element title)
style (inline style information )
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events)
bgcolor (background color)
frame, rules, border (borders and rules)
cellspacing, cellpadding (cell margins)
 *
 *
 *
 *
 *  %attrs;                              -- %coreattrs, %i18n, %events --
summary     %Text;         #IMPLIED  -- purpose/structure for speech output--
width       %Length;       #IMPLIED  -- table width --
border      %Pixels;       #IMPLIED  -- controls frame width around table --
frame       %TFrame;       #IMPLIED  -- which parts of frame to render --
rules       %TRules;       #IMPLIED  -- rulings between rows and cols --
cellspacing %Length;       #IMPLIED  -- spacing between cells --
cellpadding %Length;       #IMPLIED  -- spacing within cells --
 *
 *
 *
 *
 * <thead></thead>
<tbody></tbody>
<tfoot></tfoot>
 */
public class Table extends ElementSupportTree implements Body {

    private String summary;
    private String width;
    private String border;
    private String frame;
    private String rules;
    private String cellspacing;
    private String cellpadding;
    private List<Body> bodys;

    private THead THead;
    private TBody TBody;
    private TFoot TFoot;

    public void addTHead(THead tHead){
         this.THead=tHead;
    }

    public void addTBody(TBody tBody){
         this.TBody=tBody;
    }

    public void addTHead(TFoot tFoot){
         this.TFoot=tFoot;
    }



    public StringBuffer print() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void addElementContent(Body body) {
        if(bodys==null){
            bodys=new ArrayList<Body>();
        }
        bodys.add(body);

    }

    public void addElementListContent(List<Body> listBodies) {
         if(bodys==null){
            bodys=new ArrayList<Body>();
        }
         bodys.addAll(listBodies);
    }

}
